package com.zhang.security;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;

@SpringBootApplication
@EnableGlobalMethodSecurity(securedEnabled=true,prePostEnabled = true)
@MapperScan("com.zhang.security.mapper")
public class Security01HelloworldApplication {
    public static void main(String[] args) {
        SpringApplication.run(Security01HelloworldApplication.class, args);
    }
}
